<div ng-controller="z-emailAddressSet-c" z-loading is-loading="viewModel.isLoading">
	<div viewstack class="carousel slide" data-ride="carousel">
		<div class="carousel-inner" role="listbox">
			<div class="item active">
				<div class="row">
                    <div class="col-lg-12 heading">
                        <ul id="crumb" class="breadcrumb">
	                       <li>
		                        <i class="im-home"></i>
		                        <a href="index.html">首页</a>
	                        </li>
	                        <li ng-repeat="menu in viewModel.menuList">
	                        	<i class="{{menu.icons}}" ng-if="$index+1!=viewModel.menuList.length"></i>
	                        	<i class="en-arrow-right7" ng-if="$index+1==viewModel.menuList.length"></i>
	                        	{{menu.label}}
	                        </li>
                        </ul>
                    </div>
                </div>
                <div class="col-lg-10">
                    <!-- col-lg-6 start here -->
                    <div class="panel panel-primary toggle" id="spr_2">
                        <!-- Start .panel -->
                        <div class="panel-heading">
                            <h4 class="panel-title"><i class="im-wand"></i> 邮箱地址配置</h4>
                        <div class="panel-controls panel-controls-hide" style="display: none;"><a href="#" class="toggle panel-minimize"><i class="im-minus"></i></a></div></div>
                        <div class="panel-body" style="display: block;">
                            <form id="wizard2" class="form-horizontal form-wizard ui-formwizard" role="form" name=editForm>
                                <div class="step ui-formwizard-content" id="first2" style="display: block;">
                                    <span data-icon="ec-user" data-text="Personal information"></span>
                                    <div class="form-group">
                                        <label class="col-lg-3 col-xs-3 col-sm-3 col-md-3 control-label">邮箱地址：</label>
                                        <div class="col-lg-5 col-xs-5 col-sm-5 col-md-5"  ng-class="{ 'has-error' : editForm.emailAddress.$dirty && editForm.emailAddress.$invalid}">
										   <input name="emailAddress" class="form-control  ui-wizard-conten" ng-model="viewModel.emailAddress" 
										   ng-pattern="/[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/" maxLength="45">
										</div>
                                        <button type="button" 
												class="btn btn-primary" 
												ng-click="viewModel.save()">修改</button>
                                    </div>
                                    <!-- End .control-group  -->
                                </div>
                                <div class="wizard-actions">
                                    
                                </div>
                            </form>
                        </div>
                    </div>
                    <!-- End .panel -->
                </div>
                
                <div class="col-lg-10">
                    <!-- col-lg-6 start here -->
                    <div class="panel panel-primary toggle" id="spr_4">
                        <!-- Start .panel -->
                        <div class="panel-heading">
                            <h4 class="panel-title"><i class="im-wand"></i> 重新生成考勤</h4>
                        <div class="panel-controls panel-controls-hide" style="display: none;"><a href="#" class="toggle panel-minimize"><i class="im-minus"></i></a></div></div>
                        <div class="panel-body" style="display: block;">
                            <form id="wizard4" class="form-horizontal form-wizard ui-formwizard" role="form" name=editForm>
                                <div class="step ui-formwizard-content" id="first4" style="display: block;">
                                    <span data-icon="ec-user" data-text="Personal information"></span>
                                    <div class="form-group">
                                        <label class="col-lg-3 col-xs-3 col-sm-3 col-md-3 control-label">考勤日期：</label>
	                                    <div class="col-lg-5 col-xs-5 col-sm-5 col-md-5">
	                                        <div class="col-sm-7 col-md-7 form-input">
	                                            <div class="input-group" ng-class="{ 'has-error' : form.reportStratDate.$invalid && !form.reportStratDate.$pristine }">
	                                                <input name="startDate"
	                                                       ng-model="viewModel.startDate"
	                                                       class="form-control datetime-picker"
	                                                       type="text"
	                                                       autofocus="autofocus"
	                                                       maxLength="10"
	                                                       ng-click="viewModel.startDateOpen($event)"
	                                                       z-datepicker-popup="{{viewModel.format}}"
	                                                       is-open="viewModel.startDateOpened"
	                                                       datepicker-options="viewModel.dateOptions"
	                                                       close-text="Close"
	                                                       readonly
	                                                       tabIndex="8"><!--required-->
	                                                <span class="input-group-addon cursorPointer" ng-click="viewModel.startDateOpen($event)"><i class="fa-calendar"></i></span>
	                                            </div>
	                                        </div>
	                                    </div>
	                                    <div>
	                                        <button type="button" class="btn btn-primary" ng-click="viewModel.saveAttendaceAuto()">生成</button>
										</div>
                                    </div>
                                    <!-- End .control-group  -->
                                </div>
                                <div class="wizard-actions">
                                    
                                </div>
                            </form>
                        </div>
                    </div>
                    <!-- End .panel -->
                </div>                
                
				<!-- <div class="container-fluid">
					<div class="row">
						<table class="table table-striped table-bordered" cellspacing="0" width="100%">
							<thead>
								<tr>
									<th>邮箱地址</th>
									<th width="30%">操作</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td ng-model="viewModel.emailAddress"><span>{{viewModel.emailAddress}}</span></td>
									<td>
										<button type="button" 
												class="btn btn-primary btn-sm" 
												ng-click="viewModel.update(emailAddress)">修改</button>
									</td>
								</tr>
							</tbody>
						</table>
					</div>				
				</div> -->
			</div>
		</div>
	</div>
	<!-- <z-Dialog show-Save-Btn="true" 
	have-Error-Class="false" 
	load-Url="static/html/emailAddressSet/emailAddressSetEdit.html"
	title="{{editModel.title}}" 
	show="viewModel.show"
	cancel-fn="viewModel.unLoad()"
	save-fn="viewModel.save()"
	body-Height="425"></z-Dialog> -->
</div>